package Routes

import (
	"ali-hr/Http/Controller/Company"
	"ali-hr/Services/MiddleWare"
	"github.com/gin-gonic/gin"
)

/**
 * Created by Goland
 * User: wkk alisleepy@hotmail.com
 * Time: 2022/4/5 - 16:04
 * Desc: <法人主体公司>
 */

func InitCompanyRoutes(r *gin.Engine) {
	// 中间件
	companyGroup := r.Group("/company").Use(MiddleWare.JWTAuth())
	{
		// 所有启用的法人主体
		companyGroup.GET("/all", Company.All)
	}

}
